Skip to content

Abilities API: Products#1111

Merged
n7studios merged 2 commits into
abilities-api-broadcastsfrom
abilities-api-products
Jun 22, 2026
Merged

Abilities API: Products#1111
n7studios merged 2 commits into
abilities-api-broadcastsfrom
abilities-api-products

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

Registers four abilities (MCP tools) for the Product block/shortcode, so an MCP client can list, insert, update and delete Kit Product blocks inside a post's content.

Screenshot 2026-06-17 at 22 37 27
Ability Description Required input Output
kit/products-list Lists every Kit Product block in the given post, with each occurrence's index and current attrs. post_id { post_id, count, occurrences: [{ occurrence_index, attrs }] }
kit/product-insert Inserts a new Kit Product block. Position: append (default), prepend, or index with numeric index. post_id, attrs (e.g. product, text, discount_code, …) { post_id, occurrence_index }
kit/product-update Updates the attrs of a specific Broadcasts block by occurrence index. post_id, occurrence_index, attrs (e.g. product, text, discount_code, …) { post_id, occurrence_index }
kit/product-delete Removes a specific Product block by occurrence index. post_id, occurrence_index { post_id, occurrence_index }

Testing

  • MCPContentProductTest: Tests that MCP tools are registered, permissions are honored, insert/update/delete tools work.

Checklist

@n7studios n7studios added this to the 3.4.0 milestone Jun 17, 2026
@n7studios n7studios self-assigned this Jun 17, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team June 18, 2026 04:32
@n7studios n7studios marked this pull request as ready for review June 18, 2026 04:32

@ciccio-kit ciccio-kit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@n7studios n7studios merged commit a2b8dd4 into abilities-api-broadcasts Jun 22, 2026
260 of 269 checks passed
@n7studios n7studios deleted the abilities-api-products branch June 22, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants